package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.Orders_InfoMapper;
import com.ruoyi.shop.domain.Orders_Info;
import com.ruoyi.shop.service.IOrders_InfoService;

/**
 * 订单信息Service业务层处理
 * 
 * @author cwc
 * @date 2024-12-13
 */
@Service
public class Orders_InfoServiceImpl implements IOrders_InfoService 
{
    @Autowired
    private Orders_InfoMapper orders_InfoMapper;

    /**
     * 查询订单信息
     * 
     * @param orderId 订单信息主键
     * @return 订单信息
     */
    @Override
    public Orders_Info selectOrders_InfoByOrderId(Long orderId)
    {
        return orders_InfoMapper.selectOrders_InfoByOrderId(orderId);
    }

    /**
     * 查询订单信息列表
     * 
     * @param orders_Info 订单信息
     * @return 订单信息
     */
    @Override
    public List<Orders_Info> selectOrders_InfoList(Orders_Info orders_Info)
    {
        return orders_InfoMapper.selectOrders_InfoList(orders_Info);
    }

    /**
     * 新增订单信息
     * 
     * @param orders_Info 订单信息
     * @return 结果
     */
    @Override
    public int insertOrders_Info(Orders_Info orders_Info)
    {
        return orders_InfoMapper.insertOrders_Info(orders_Info);
    }

    /**
     * 修改订单信息
     * 
     * @param orders_Info 订单信息
     * @return 结果
     */
    @Override
    public int updateOrders_Info(Orders_Info orders_Info)
    {
        return orders_InfoMapper.updateOrders_Info(orders_Info);
    }

    /**
     * 批量删除订单信息
     * 
     * @param orderIds 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteOrders_InfoByOrderIds(Long[] orderIds)
    {
        return orders_InfoMapper.deleteOrders_InfoByOrderIds(orderIds);
    }

    /**
     * 删除订单信息信息
     * 
     * @param orderId 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteOrders_InfoByOrderId(Long orderId)
    {
        return orders_InfoMapper.deleteOrders_InfoByOrderId(orderId);
    }
}
